<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
  
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
	.user{ text-align:right}

</style>
<title>Insert title here</title>
</head>
<body>
	<div class="user">
		<h4>welcome: ${cust.userName }</h4>
		<a href="../sec/check">&nbsp;&nbsp;查看购物车&nbsp;&nbsp;</a>
	</div>
	
	<h1>The books:</h1>
	<table>
		<c:forEach items="${books }" var="book" >
			<tr> 
				<td><img width="150" height="150" alt=${book.value.name } src=../${book.value.path }></td>
			</tr>
			<tr>
				<td> ${book.value.name } </td>
			<tr>
				<td> <a href="../sec/addToCart?bookId=${book.value.id }&bookName=${book.value.name}" >加入购物车</a>
			</tr>
		
		</c:forEach>
		
		
	</table>
	

</body>
</html>